package com.lagou.edu.fegin;

import com.lagou.edu.fegin.fallback.EmailServiceClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 赵虎
 * @date 2021/2/23 10:01 上午
 */
@FeignClient(value = "lagou-scn-mail", fallback = EmailServiceClientFallback.class)
public interface IEmailServiceClient {
    @GetMapping("/email/{email}/{code}")
    public Boolean sendMail(@PathVariable("email") String email, @PathVariable("code") String checkCode);
}
